<?php
class Mdsmssend {
    private $curl;
    private $url='http://sdk2.entinfo.cn:8061/mdsmssend.ashx?sn=SDK-WSS-010-07087&pwd=943F756E0F03C96E9686DE87B9B8AA50&mobile=[NUMBER]&content=[MESSAGE][寄云科技]&ext=&stime=&rrid=&msgfmt=';
    public function __construct($registry) {
        $this->curl = $registry->get('curl');
    }
    public function send($number,$message){
        $url=str_replace('[MESSAGE]',$message,$this->url);
        $url=str_replace('[NUMBER]',$number,$url);
        $result=file_get_contents($url);
        return $result;
    }
}
?>